﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Economo.Services.EntitiesConversion;
using System.Runtime.Serialization;

namespace Economo.Services.BusinessEntities
{
    [DataContract]
    public class Bank
    {
        #region Properties, Attributes and DataMembers
        private byte _id;
        private string _description;
        private byte[] _picture;
        

        [DataMember]
        [MappingSettingsAttribute(true,"Id", MappingSettingsAttribute.MappingType.Simple)]
        public byte Id 
        { 
            get
            {
                return _id;
            }
            set
            {
                _id = value;
            }
        }
        [DataMember]
        [MappingSettingsAttribute(true, "Description", MappingSettingsAttribute.MappingType.Simple)]
        public string Description
        {
            get
            {
                return _description;
            }
            set
            {
                _description = value;
            }
        }
        [DataMember]
        [MappingSettingsAttribute(false, "Picture", MappingSettingsAttribute.MappingType.Simple)]
        public byte[] Picture
        {
            get
            {
                return _picture;
            }
            set
            {
                _picture = value;
            }

        }

        #endregion

        public Bank()
        {

        }
        public Bank(byte id, string description, byte[] picture)
        {
            this.Id = id;
            this.Description = description;
            this.Picture = picture;
        }
        
    }

}
